cd ~

#install zsh
yum -y install zsh

#install oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh

#install z 
git clone https://github.com/rupa/z
echo ". ~/z/z.sh" >> ~/.zshrc
source ~/.zshrc

#install wget
yum -y install wget


#install tmux depend libevent 
wget http://www.monkey.org/~provos/libevent-2.0.10-stable.tar.gz

tar xzf libevent-2.0.10-stable.tar.gz

cd libevent-2.0.10-stable

./configure

make 

make install

cd ~


#install tmux depend curses
yum -y install ncurses-devel

#install tmux
wget  https://github.com/tmux/tmux/releases/download/2.5/tmux-2.5.tar.gz

tar xzf tmux-2.5.tar.gz

cd tmux-2.5

./configure

make 

make install

cd ~
#install .tmux
git clone https://github.com/gpakosz/.tmux.git

ln -s -f .tmux/.tmux.conf

cp .tmux/.tmux.conf.local .

#echo "set-option -g allow-rename off" >> ~/.tmux.conf.local #关闭窗口自动重命名

#install Tmux Resurrect
cd .tmux 

git clone https://github.com/tmux-plugins/tmux-resurrect.git

echo "run-shell ~/.tmux/tmux-resurrect/resurrect.tmux" >> ~/.tmux.conf.local








 